<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        h2 {
            color: purple;
        }
    </style>
    <link rel="stylesheet" href="css/style.css">
</head>
<body>

<!--行内样式-->
<h2 style="color: red">我是h2标签</h2>

</body>
</html>